﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeBehind="pagetest.aspx.cs" Inherits="HYSoft.Web.pagetest" %>
<%@ Register Src="~/Controls/menutest.ascx" TagName="menu" TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .main {
            width: 70%;
            min-height: 900px;
            margin: auto;
            background-color: #FFFFFF;
        }

            .main .tables {
                margin: 10px 0px 10px 0px;
            }

                .main .tables .toplogo img {
                    width: 100%;
                }

                .main .tables .data {
                    margin: 0px 10px 0px 10px;
                }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="contentPlaceHolderMenu" runat="server">
    <uc1:menu ID="menu" runat="server" />
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="contentPlaceHolderMain" runat="server">
    <div class="main">
        <div class="tables">
            <div class="toplogo">
                <img src="Images/top.PNG" />
            </div>
            <div class="data">
                <table width="100%" border="1" cellspacing="0" cellpadding="0">
                    <tr style="background: url(images/ws3.jpg) repeat-x; font-weight: bold;">
                        <td style="width: 100px; height: 25px;">所在区</td>
                        <td>所在县</td>
                        <td>监测点具体地址</td>
                        <td>现场联系人1</td>
                        <td>联系人1电话</td>
                        <td>传感器节点数量</td>
                        <td>传感器状态</td>
                    </tr>
                    <asp:ListView ID="ListView1" runat="server" OnItemDataBound="ListView1_ItemDataBound">
                        <ItemTemplate>
                            <tr id="trItem" runat="server">
                                <td style="width: 100px; height: 40px;"><font color="<%=status_color %>">
                                        &nbsp;<%#Eval("m_area_name")%></font></td>
                                <td><font bgcolor="<%=status_color %>"> 
                                        &nbsp;<%#Eval("m_area_id")%></font></td>
                                <td>&nbsp;<a style="color: blue;" href="monitor_list.aspx?id=<%#Eval("index")%>"><strong><%#Eval("Addr")%></strong></a></td>
                                <td><font> 
                                        &nbsp;<%#Eval("Contact_name1")%></font></td>
                                <td><font>
                                        &nbsp;<%#Eval("Contact_mobile1")%></font></td>
                                <td><font> 
                                        &nbsp;<%#data_Statusid(Eval("index").ToString())%>&nbsp;(个)
                                        </font>
                                </td>
                                <td><font> 
                                        &nbsp;<%#data_Status(Eval("index").ToString())%></font></td>
                            </tr>
                        </ItemTemplate>
                    </asp:ListView>
                    <tr>
                        <td colspan="7" style="width: 579px; font-size: 9pt; text-align: right; height: 30px;">
                            <asp:Label ID="Label4" runat="server" Text="当前页码为"></asp:Label>[
            <asp:Label ID="labPage" runat="server" Text="1"></asp:Label>&nbsp;]
            <asp:Label ID="Label5" runat="server" Text="总页码为"></asp:Label>[
             <asp:Label ID="labBackPage" runat="server"></asp:Label>&nbsp;]
             &nbsp;<asp:LinkButton ID="lnkbtnOne" runat="server" Font-Underline="False" ForeColor="Red"
                 OnClick="lnkbtnOne_Click">第一页</asp:LinkButton>
                            &nbsp;<asp:LinkButton ID="lnkbtnUp" runat="server" Font-Underline="False" ForeColor="Red"
                                OnClick="lnkbtnUp_Click">上一页</asp:LinkButton>
                            &nbsp;<asp:LinkButton ID="lnkbtnNext" runat="server" Font-Underline="False" ForeColor="Red"
                                OnClick="lnkbtnNext_Click">下一页</asp:LinkButton>&nbsp;<asp:LinkButton ID="lnkbtnBack" runat="server" Font-Underline="False" ForeColor="Red"
                                    OnClick="lnkbtnBack_Click">最后一页</asp:LinkButton>&nbsp;&nbsp;

                        </td>
                    </tr>
                </table>
            </div>

        </div>
    </div>
</asp:Content>

